package com.model.auto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学科门类信息表
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Data
public class MajorDetailInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 专业名称
     */
    private String name;

    /**
     * 专业编码
     */
    private String code;

    /**
     * 专业概述
     */
    @TableField(value = "`describe`")
    private String describe;

    /**
     * 专业课程
     */
    private String courseInfo;

    /**
     * 与中学课程相关度
     */
    private String courseRel;

    /**
     * 考研方案
     */
    private String studyType;

    /**
     * 就业方向
     */
    private String workType;

    /**
     * 学位属于门类
     */
    private String degree;

    /**
     * 学制
     */
    private String educationalSystem;

    /**
     * 排序字段数字越小越靠前
     */
    private Integer sortNum;

    private Integer enabled;

    private Long createBy;

    private String createName;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createDate;

    private Long updateBy;

    private String updateName;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateDate;

    /**
     * 专业类id
     */
    @TableField(exist = false)
    private Integer categoryId;

    /**
     * 所属专业类id
     */
    @TableField(exist = false)
    private Integer parentCategoryId;

    /**
     * 所属专业类名称
     */
    @TableField(exist = false)
    private String parentCategoryName;
    /**
     * 所属门类id
     */
    @TableField(exist = false)
    private Integer grandCategoryId;

    /**
     * 所属门类名称
     */
    @TableField(exist = false)
    private String grandCategoryName;

    /**
     * 所属专业类名称
     */
    @TableField(exist = false)
    private List<Map> majorScore;
}
